package unit_6;
import java.util.Scanner;
public class Demo01 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        char[] s = str.toCharArray();
        System.out.println("字符串长度：" + str.length());
        System.out.println("第一个字符：" + s[0] + " " + "最后一个字符：" + s[s.length - 1]);
    }
}
